package com.yanrumiao.entity;

import cc.uncarbon.framework.crud.entity.HelioBaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serial;
import java.time.LocalDate;
import java.time.LocalDateTime;
import cc.uncarbon.framework.core.enums.YesOrNoEnum;
import cc.uncarbon.framework.core.enums.EnabledStatusEnum;


/**
 * 技师
 */
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName(value = "staff")
public class StaffEntity extends HelioBaseEntity<Long> {

    @Serial
    private static final long serialVersionUID = 1L;


    @Schema(description = "昵称")
    @TableField(value = "nick_name")
    private String nickName;

    @Schema(description = "姓名")
    @TableField(value = "name")
    private String name;

    @Schema(description = "性别")
    @TableField(value = "sex")
    private Integer sex;

    @Schema(description = "介绍")
    @TableField(value = "intro")
    private String intro;

    @Schema(description = "电话")
    @TableField(value = "telephone")
    private String telephone;

    @Schema(description = "头像")
    @TableField(value = "avatar")
    private String avatar;

    @Schema(description = "当月营业额")
    @TableField(value = "month_earn_money")
    private Long monthEarnMoney;

    @Schema(description = "当月服务人数")
    @TableField(value = "month_customer_num")
    private Integer monthCustomerNum;

    @Schema(description = "身份证正面")
    @TableField(value = "sfz_imgz")
    private String sfzImgz;

    @Schema(description = "身份证反面")
    @TableField(value = "sfz_ingf")
    private String sfzIngf;

    @Schema(description = "服务次数")
    @TableField(value = "service_num")
    private Integer serviceNum;

    @Schema(description = "从业年限")
    @TableField(value = "job_year")
    private Integer jobYear;

    @Schema(description = "状态（0禁用，1正常")
    @TableField(value = "status")
    private EnabledStatusEnum status;

    @Schema(description = "店铺id")
    @TableField(value = "store_id")
    private Long storeId;

}
